package com.app;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Date;

/**
 * Created by zhen on 2016/10/14.
 */

@SpringBootApplication
public class Application {


    @RequestMapping("/")
    String home() {
        return "Hello World!";
    }

    @RequestMapping("/now")
    String time() {
        return "现在时间：" + new Date()+" !";
    }

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
}
